package igor.lakienko.ru.generation.quotes.mapper;

import igor.lakienko.ru.generation.quotes.entity.CryptocurrencyEntity;
import igor.lakienko.ru.generation.quotes.dto.CryptocurrencyDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(config = DefaultMapperConfig.class)
public interface CryptocurrencyMapper {

    @Mapping(target = "sentAt", ignore = true)
    CryptocurrencyDto cryptocurrencyEntityToDto(CryptocurrencyEntity cryptocurrencyEntity);

    List<CryptocurrencyDto> cryptocurrenciesEntityToDto(List<CryptocurrencyEntity> cryptocurrencyEntity);

}
